package models

import (
	"time"
)

/*
 +----------------------------------------------------------------------
 + Title        : UserAlbum
 + Author       : huwl
 + Version      : 1.0.0
 + Initial-Time : 2018-01-06
 + Last-time    : 这个文件最后修改的时间 + 修改人的名称
 + Desc         : 用户相册模型
 +----------------------------------------------------------------------
*/
type UserAlbum struct {
	Id          int       `gorm:"primaryKey;autoIncrement" json:"id"`
	Uid         int       `json:"uid"`
	ImageUrl    string    `json:"image_url"`
	Description string    `json:"description"`
	CreateTime  time.Time `gorm:"autoCreateTime" json:"create_time"`
	UpdateTime  time.Time `gorm:"default:null;" json:"update_time"`
	Base        `gorm:"-"`
}

func (UserAlbum) TableName() string {
	return "mall_user_album"
}
